﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EQual.MainModule.Reviews.Models
{
   public class ReviewPresentationModel : EQual .Infrastructure .MVPFramework .Models .PresentationModelBase <DataAccesLayer .Review>
    {
        public ReviewPresentationModel()
        {
            DataFactory = new DataAccesLayer.EQualDataLayerFactory();
        }

        public Views.ReviewsGridView View { get; set; }

        protected override IEnumerable<DataAccesLayer.Review> GetCollection()
        {
            return DataFactory.GetReviewsAccesLayer().GetReviews();
        }

        protected override void CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
        {
            base.CollectionChanged(sender, e);
        }
    }
}
